package com.sai.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sai.system.entity.SysRolePermission;
import com.sai.system.model.SysRolePermissonModel;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 角色权限表 Mapper 接口
 */
@Mapper
public interface SysRolePermissionMapper extends BaseMapper<SysRolePermission> {

    /**
     * 按userid查询用户拥有的角色权限
     * @param userId
     * @return
     */
    List<SysRolePermissonModel> selectByUserId(@Param("userId") String userId);
}
